package com.swgk.core.view.entity;

import com.contrarywind.interfaces.IPickerViewData;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class GoodsSkuChild1 implements Serializable, IPickerViewData {
    @SerializedName(value = "attribute", alternate = {"itemParamId"})
    private String attribute;
    @SerializedName(value = "valId", alternate = {"id"})
    private String valId;
    @SerializedName(value = "val", alternate = "valData")
    private String val;
    private boolean isOnClick = false;

    public boolean isOnClick() {
        return isOnClick;
    }

    public void setOnClick(boolean onClick) {
        isOnClick = onClick;
    }

    public String getAttribute() {
        return attribute;
    }

    public void setAttribute(String attribute) {
        this.attribute = attribute;
    }

    public String getValId() {
        return valId;
    }

    public void setValId(String valId) {
        this.valId = valId;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    @Override
    public String getPickerViewText() {
        return val;
    }

    @Override
    public String toString() {
        return "GoodsSkuChild1{" +
                "attribute='" + attribute + '\'' +
                ", valId='" + valId + '\'' +
                ", val='" + val + '\'' +
                ", isOnClick=" + isOnClick +
                '}';
    }
}
